const Router = require('koa-router')
const UserController = require('../controllers/user')

const userRouter = new Router()
userRouter.prefix('/user')
userRouter.get('/info', UserController.getUserById)
userRouter.post('/inset', UserController.insetUser)
userRouter.post('/update', UserController.updateUser)

module.exports = userRouter
